package com.qdxwx.data.mapper.manager;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.manager.ManagerOnline;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 在线用户 数据层
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface ManagerOnlineMapper {
    ManagerOnline selectOnlineById(String sessionId);

    int deleteOnlineById(String sessionId);

    int saveOnline(ManagerOnline online);

    List<ManagerOnline> selectList(@Param("e") ManagerOnline userOnline, @Param("page") PageRequest page);

    long selectCount(@Param("e") ManagerOnline userOnline);

    List<ManagerOnline> selectOnlineByExpired(String lastAccessTime);
}
